package cn.tedu.boot34.mapper;

import cn.tedu.boot34.entity.Emp;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmpMapper {
    @Insert("insert into myemp values(null,#{name},#{sal},#{job})")
    void insert(Emp emp);

    @Select("select * from myemp where id=#{id}")
    Emp selectByid();

}
